const { DataTypes } = require('../utils/sequelize');

const ClassRoom = {
  name: "ClassRoom",
  data: {
    classRoomId: {
      type: DataTypes.STRING,
      allowNull: false,       //是否能为空
      primaryKey: true,       //主键
      // autoIncrement: true,    //是否自增
    },
    classRoomAddr: {
      type: DataTypes.STRING,
      allowNull: false,
    },
    classRoomLevel: {
      type: DataTypes.NUMBER,
      allowNull: false,
    },
    lastLevelId: {
      type: DataTypes.STRING,
      allowNull: true,
    }
  },
  options: {
      tableName: 'class_room_tb'
  }
}
module.exports = ClassRoom